package cn.dongqihong.oauth2.service;

import cn.dongqihong.oauth2.entity.User;
import cn.dongqihong.oauth2.mapper.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {
    @Resource
    private UserMapper userMapper;

    public User findByName(String name) {
        return userMapper.findByName(name);
    }
}
